@charset "utf-8";
@import "bootstrap";
@import "reset";
@import "iconfont";
@function r($px){
    @return $px/30*1rem;
}

body{
    position: relative;
}

.courseWeb{
    width: 100%;
    height: 100%;
    position: relative;
    overflow-x: hidden;
    label {
        display: inline;
        margin-bottom: 0;
    }
    header{
        width: 100%;
        height: r(90);
        background: #b20000;
        position: absolute;
        top: 0;
        ul{
            height: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
            li{
                text-align: center;
                .iconfont{
                    color: white;
                    font-size: r(45);
                }
                &:nth-child(2){
                    width: 45%;
                    height: 50%;
                    img{
                        width: 100%;
                        height: 100%;
                    }
                }
                &:last-child{
                    #circle{
                        width: r(42);
                        height: r(42);
                        border: 1.5px solid white;
                        border-radius: 50%;
                        line-height: r(42);
                        .icon-sousuo{
                            font-size: r(40);
                        }
                    }
                }
            }
        }
    }
    
    .hide_left,
    .hide_right {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        z-index: 99;
        input[type="checkbox"] {
            width: 0;
            height: 0;
            display: none;
        }
        //搜索框
        .search{
            padding: r(10) 0 r(20);
            display: flex;
            justify-content: space-around;
            align-items: center;
            .icon-cha{
                color: red;
                font-size: r(50);
                border-radius: 50%;
                //background: white;
            }
            input[type=text]{
                border-radius: r(40);
                border: r(2) solid white;
                width: r(510);
                height: r(50);
                background: url(../img/hide/search.png) no-repeat left r(10) center/7% #1f1f1f;
                color: #7e7e7e;
                font-size: r(30);
                padding-left: r(55);
            }
        }
    }
    .hide_left {
        left: -100%;
        #show_user:checked~div {
            transform: translate(100%);
        }
        #user_unlogin {
            width: 100%;
            height: 100%;
            transition: all 0.5s;
            background: #222;
            //个人中心
            .user{
                width: r(500);
                margin: 0 auto;
                text-align: center;
                .head{
                    width: r(135);
                    height: r(135);
                    margin: 0 auto;
                    position: relative;
                    img{
                        width: 100%;
                        position: absolute;
                        top: -100px;
                        bottom: -100px;
                        left: -100px;
                        right: -100px;
                        margin: auto;
                    }
                }
                .data{
                    margin-top: r(8);
                    color: white;
                    .name{
                        font-size: r(24);
                        span{
                            font-size: r(16);
                            display: inline-block;
                            border: 1px solid white;
                        }
                        span:after{
                            content: '>';
                        }
                    }
                    .grade{
                        margin:3px 0;
                        img{
                            width: r(20);
                            height: r(20);
                        }
                    }
                    p:last-of-type{
                        font-size: r(24);
                        span{
                            font-size: r(16);
                            color: #B60005;
                            font-weight: bolder;
                        }
                    }
                    button{
                        border:none;
                        outline: none;
                        margin:r(10) 0 r(20);
                        width: r(200);
                        height: r(50);
                        line-height: r(50);
                        border-radius: r(30);
                        &[class=left]{
                            background: #B60005;
                            margin-right: 8px;
                        }
                        &[class=right]{
                            background: #cdcdcd;
                        }
                        font-size:r(24);
                    }
                }
            }
            //背景色
            div:empty{
                width: r(640);
                height: r(30);
                background: #303030;
            }
            
            .nav{
                margin-top: r(20);
                color: #656565;
                text-align: center;
                overflow: hidden;
                >div{
                    display: flex;
                    align-items: center;
                    justify-content: space-around;
                    p{
                        font-size: r(24);
                    }
                    padding:12px;
                    margin: 0 r(-220);
                    border-bottom: 1px solid #7f7f7f;
                }
            }
            
            .bottom{
                position: absolute;
                bottom: r(30);
                left: 50%;
                transform: translate(-50%);
                font-size:r(24);
                color: white;
                background: #B60005;
                width: r(160);
                height: r(50);
                line-height: r(50);
                border-radius: r(30);
                outline: none;
            }
        }
    }
    .hide_right {
        right: -100%;
        input[type="checkbox"]:checked~div {
            transform: translate(-100%);
        }
        .hot_search{
            width: 100%;
            height: 100%;
            transition: all 0.5s;
            background: #E6E6E6;
            .search {
                background: #1e1e1e;
            }
            div:last-of-type{
                padding: r(20) r(35) 0;
                p{
                    font-size: r(26);
                }
                button{
                    font-size: r(28);
                    padding: 2px 8px;
                    background: #FFFFFF;
                    color: #8b8b8b;
                    outline: none;
                    margin: r(15) r(10) 0 0;
                }
            }
        }
    }
    
    section{
        width: 100%;
        position: absolute;
        top: r(90);
        bottom: r(95);
        overflow: auto;
        padding: r(30);
        .content{
            .title{
                border-bottom: 1px solid #d2d2d2;
                h1{
                    font-size: r(30);
                    color: #5c5856;
                    font-weight: bold;
                }
                ul{
                    margin: r(15) 0;
                    line-height: r(30);
                    li{
                        display: inline-block;
                        font-size: r(20);
                        color: #8b8b8b;
                        &:last-child{
                            float: right;
                        }
                    }
                }
            }
            .pic{
               margin: r(16) auto r(30); 
               height: r(280);
               overflow: hidden;
               background: skyblue;
               position: relative;
               img{
                   width: 100%;
                   position: absolute;
                   top: 50%;
                   left: 50%;
                   transform: translate(-50%,-50%);
               }
            }
            .text{
                color: #8B8B8B;
                font-size: r(24);
                line-height: 1.6;
                p:nth-child(2){
                    margin: r(42) 0;
                }
                margin-bottom:r(30);
            }
        }
        div:empty{
            height: r(25);
            background: #f5f5f5;
            margin: 0 r(-30);
        }
        .TimeAndAddress{
            font-size: r(24);
            color: #727171;
            h1{
                font-size: r(30);
                margin: r(15) 0;
                color: #5c5856;
                font-weight: bold;
            }
            .time{
                img{
                    width: r(24);
                    height: r(24);
                }
            }
            .address{
                img{
                    width: r(23);
                    height: r(28);
                }
                margin: r(12) 0 r(27);
            }
        }
        .teacher{
            h2{
                font-size: r(26);
                color: #5c5856;
                margin: r(16) 0;
                font-weight: bold;
            }
            .people{
                margin-bottom: r(16);
                display: flex;
                justify-content: space-between;
                >div{
                    height: r(88);
                    width: 33%;
                    font-size: 0;
                    .pic{
                        display: inline-block;
                        width: 48%;
                        height: r(88);
                        position: relative;
                        overflow: hidden;
                        img{
                            width: 100%;
                            height: 100%;
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%,-50%);
                        }
                    }
                    .intro{
                        display: inline-block;
                        vertical-align: top;
                        height: 100%;
                        width: 52%;
                        padding-left: 3px;
                        h4{
                            font-size: r(20);
                            color: #727171;
                            margin-bottom: r(5);
                        }
                        p{
                            font-size: r(18);
                            color: #8a8989;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical;
                        }
                    }
                }
            }
        }
        button{
            margin-top: r(23);
            width: 100%;
            line-height: r(65);
            background: #B20000;
            text-align: center;
            font-size: r(34);
            color: white;
            span{
                display: inline-block;
                width: r(30);
                height: r(30);
                text-align: center;
                line-height: r(30);
                border-radius: 50%;
                background: white;
                color: #B20000;
            }
        }
    }
    
    footer{
        width: 100%;
        height: r(95);
        position: absolute;
        bottom: 0;
        background: #f5f5f5;
        border-top:1px solid #b1aeaf;
        ul{
            height: 100%;
            font-size: 0;
            li{
                width: 20%;
                height: 100%;
                padding: 1.5% 0 1%;
                display: inline-block;
                text-align: center;
                border-right: 1px solid #e8e8e8;
                .pic{
                    height: 55%;
                    width: 70%;
                    margin: 0 auto 8%;
                    img{
                        height: 100%;
                    }
                }
                p{
                    font-size: r(20);
                    color:#8b8b8b;
                    &[class="red"]{
                        color: #b60005;
                        font-weight: bold;
                    }
                }
            }
        }
    }
}
